package com.hhkj.api.order.model.req;

import com.hhkj.admin.order.model.dopo.OrderItemDo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * ApiOrderItemCheckReq
 *
 * @author HHKJ-SERVER-ZJ
 * @since 2023/10/30 14:05
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ApiOrderItemCheckReq extends OrderItemDo {

    @NotBlank(message = "姓名不能为空")
    @Override
    public String getName() {
        return super.getName();
    }

    @NotBlank(message = "身份证号码不能为空")
    @Override
    public String getIdCard() {
        return super.getIdCard();
    }

    @NotNull(message = "课程不能为空")
    @Override
    public Long getCourseId() {
        return super.getCourseId();
    }
}
